<?php
if(!defined('IN_UCHOME')) exit('Access Denied');
$_SGLOBAL['movie_plays']=Array
	(
	2 => Array
		(
		'playid' => 2,
		'playername' => '普通播放器',
		'playercontent' => '<script type="text/javascript">
var url="$url";
urltype=url.substr(url.lastIndexOf(".")+1,url.length);
urltype=urltype.toLowerCase();
if(urltype=="wmv" || urltype=="mpg" || urltype=="asf" || urltype=="mp3" || urltype=="mpeg" || urltype=="avi"){
document.write(\'<object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="mediaPlayer" height="390" width="520">\');
document.write(\'<param name="AutoStart" value="-1">\');
document.write(\'<param name="Balance" value="0">\');
document.write(\'<param name="BaseURL" value="">\');
document.write(\'<param name="CaptioningID" value>\');
document.write(\'<param name="CurrentPosition" value="-1">\');
document.write(\'<param name="CurrentMarker" value="0">\');
document.write(\'<param name="DefaultFrame" value>\');
document.write(\'<param name="Enabled" value="-1">\');
document.write(\'<param name="EnableContextMenu" value="0">\');
document.write(\'<param name="fullScreen" value="0">\');
document.write(\'<param name="InvokeURLs" value="-1">\');
document.write(\'<param name="Mute" value="0">\');
document.write(\'<param name="PlayCount" value="1">\');
document.write(\'<param name="Rate" value="1">\');
document.write(\'<param name="SAMILang" value>\');
document.write(\'<param name="SAMIStyle" value>\');
document.write(\'<param name="SAMIFileName" value>\');
document.write(\'<param name="Volume" value="70">\');
document.write(\'<param name="WindowlessVideo" value="0">\');
document.write(\'<param name="uiMode" value="full">\');
document.write(\'<param name="stretchToFit" value="0">\');
document.write(\'<param name="enableErrorDialogs" value="0">\');
document.write(\'<param name="url" value="\'+url+\'">\');
document.write(\'</object>\');
}else{ 
document.write(\'<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><OBJECT id="RealPlayer" name="RealPlayer" height="100%" width="100%" classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA VIEWASTEXT>\');
document.write(\'<PARAM NAME="AUTOSTART" VALUE="1">\');
document.write(\'<PARAM NAME="CONTROLS" VALUE="ImageWindow">\');
document.write(\'<PARAM NAME="PREFETCH" VALUE="0">\');
document.write(\'<PARAM NAME="LOOP" VALUE="0">\');
document.write(\'<param name="SRC" value="\'+url+\'">\');
document.write(\'<param name="CONSOLE" value="one">\');
document.write(\'</OBJECT></td></tr>\');
document.write(\'<tr><td width="100%" style="height:60px;"><OBJECT id=rxx height="60" width="100%" classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA VIEWASTEXT>\');
document.write(\'<param name="CONTROLS" value="ControlPanel,StatusBar">\');
document.write(\'<param name="CONSOLE" value="one">\');
document.write(\'</OBJECT></td><td></table>\');
}
</script>',
		'sort' => 1
		),
	1 => Array
		(
		'playid' => 1,
		'playername' => 'FLASH',
		'playercontent' => '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="480">
			<param name="movie" value="$url">
			<param name="allowscriptaccess" value="always">
			<embed src="$url" type="application/x-shockwave-flash" width="640" height="480" allowfullscreen="true" allowscriptaccess="always"></embed>
			</object>',
		'sort' => 2
		),
	3 => Array
		(
		'playid' => 3,
		'playername' => 'QVOD快播',
		'playercontent' => '<object classid="clsid:F3D0D36F-23F8-4682-A195-74C92B03D4AF" width="640" height="480" id="QvodPlayer" name="QvodPlayer" onError=if(window.confirm(\'请您先安装QVOD_P2P播放器..才可以享受一边高速播放一边下载的快感哦.\')){window.open(\'http://update.qvod.com/QvodSetup.exe\')}else{self.location.reload();}>
<PARAM NAME=\'URL\' VALUE=\'$url\'>
<PARAM NAME=\'Autoplay\' VALUE=\'1\'>
</object>
<embed URL=\'$url\' type=\'application/qvod-plugin\'  width="640" height="480" Showcontrol=\'1\' AutoPlay=\'1\'>
</embed>',
		'sort' => 3
		),
	4 => Array
		(
		'playid' => 4,
		'playername' => 'GVOD迅播',
		'playercontent' => '<script src="http://gvod.xunlei.com/player/gvod.js" type="text/javascript" charset="gbk"></script>
<script type="text/javascript">
var player = gvod_player();
player.height = 390;
player.width = 520;
player.nextUrl = \'$url\' ;
player.play(\'$url\');
</script>',
		'sort' => 4
		),
	5 => Array
		(
		'playid' => 5,
		'playername' => 'PIPI皮皮影音',
		'playercontent' => '<SCRIPT src="http://www.pipi.la/webplay/pipi.js" charset="gbk" type=text/javascript></SCRIPT>
<script type="text/javascript">
var player=zyPlayer;
player.width=520;
player.height=390;
player.play(\'$url\',24);
</script>',
		'sort' => 5
		),
	6 => Array
		(
		'playid' => 6,
		'playername' => '天线高清',
		'playercontent' => '<SCRIPT type=text/javascript>
//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.
function AC_AddExtension(src, ext)
{
  if (src.indexOf(\'?\') != -1)
    return src.replace(/\\?/, ext+\'?\'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = \'<object \';
  for (var i in objAttrs)
    str += i + \'="\' + objAttrs[i] + \'" \';
  str += \'>\';
  for (var i in params)
    str += \'<param name="\' + i + \'" value="\' + params[i] + \'" /> \';
  str += \'<embed \';
  for (var i in embedAttrs)
    str += i + \'="\' + embedAttrs[i] + \'" \';
  str += \' ></embed></object>\';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
	//ret.embedAttrs[args[i]] = args[i+1];
        //break;
      case "id":
	//ret.objAttrs[args[i]] = args[i+1];
        //break;
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}

function search(val){
	searchinfo=document.form1.textfield.value;
	if(searchinfo){
		if(val){
			window.open("http://oma.openv.com/search/search.jsp?keyword="+encodeURIComponent(searchinfo));
		} else {    
			window.open("http://www.openv.com/ls.jsp?q="+ encodeURIComponent(searchinfo));
		}
	} else {
		if(val){
			window.open("http://oma.openv.com");
		}
	}
	return false;
}

</SCRIPT>

<!-- 播放器 -->
<SCRIPT type=text/javascript>
  AC_FL_RunContent(\'codebase\'
    ,\'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\'
    , \'width\',\'520\'
    , \'height\',\'390\'
    , \'id\',\'vplay\'
    , \'allowScriptAccess\',\'always\'
    , \'quality\',\'high\'
    , \'allowNetworking\',\'internal\'
    , \'allowfullscreen\',\'true\'
    , \'movie\',\'http://img.openv.tv/hd/swf/hd_player\'
    , \'FlashVars\',\'&hasLeftBar=false&pid=$url&q=tv=0,vtype=1,hd=1&autostart=true&showOverEvent=1&culatePlayerTimer=true&playADstatu=true&showLRmenu=false&playNowTitle=片段+\');
</SCRIPT>',
		'sort' => 6
		)
	)
?>